package cn.tedu;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class Demo01 {
    public static void main(String[] args) {
        try (Connection conn = DBUtils.getConn();){
            Statement s = conn.createStatement();
            s.execute("create table hero(id int,name varchar(50),type varchar(50))");
            s.executeUpdate("insert into hero values(1,'诸葛亮','黑法师'),(2,'孙尚香','射手')");
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
    }
}
